package com.tansun.easycare.rule.deployonline.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tansun.easycare.rule.common.service.impl.RuleBaseServiceImpl;
import com.tansun.easycare.rule.deployonline.dao.RuleEnterpointDao;
import com.tansun.easycare.rule.deployonline.entity.RuleEnterpoint;
import com.tansun.easycare.rule.deployonline.service.RuleEnterpointService;

@Service
public class RuleEnterpointServiceImpl extends RuleBaseServiceImpl<RuleEnterpointDao, RuleEnterpoint> implements RuleEnterpointService {
    @Autowired
    private RuleEnterpointDao ruleEnterpointDao;
    @Override
    public List<RuleEnterpoint> findByDeployId(String deploymentId, List<String> ids) {
    	if( ids != null && ids.size() > 0 ) {
    		return ruleEnterpointDao.findByDeployId(deploymentId,ids);
    	}else {
    		return new ArrayList<RuleEnterpoint>();
    	}
    }
}
